#ifndef VIEWWIDGET_H
#define VIEWWIDGET_H

#include <QWheelEvent>
#include <QGraphicsView>
#include <QDebug>

class ViewWidget : public QGraphicsView
{
    Q_OBJECT
	public:
		explicit ViewWidget(QObject *parent = 0);

		void wheelEvent(QWheelEvent *event);

	signals:
		void zoomChanged(int);
		void mouseDoubleClickDrag (QPointF p);
		void mouseMoveDrag (QPointF p);
		void mouseReleaseDrag (void);
		void createPoint (QPointF p);

	public slots:
		void mouseDoubleClickEvent (QMouseEvent *event);
		void mouseMoveEvent (QMouseEvent *event);
		void mouseReleaseEvent (QMouseEvent *event);

	private:
		bool selecting;

};

#endif // VIEWWIDGET_H
